package com.dy.system.mapper;

import com.dy.system.domain.FreshMedicalMachine;
import com.dy.system.domain.MedicalMachine;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备信息Mapper接口
 *
 * @author ruoyi
 * @date 2022-08-16
 */
public interface FreshMedicalMachineMapper {
    /**
     * 查询设备信息
     *
     * @param id 设备信息主键
     * @return 设备信息
     */
    public FreshMedicalMachine selectFreshMedicalMachineById(Long id);

    /**
     * 查询设备信息列表
     *
     * @param freshMedicalMachine 设备信息
     * @return 设备信息集合
     */
    public List<FreshMedicalMachine> selectFreshMedicalMachineList(FreshMedicalMachine freshMedicalMachine);

    /**
     * 新增设备信息
     *
     * @param freshMedicalMachine 设备信息
     * @return 结果
     */
    public int insertFreshMedicalMachine(FreshMedicalMachine freshMedicalMachine);

    /**
     * 修改设备信息
     *
     * @param freshMedicalMachine 设备信息
     * @return 结果
     */
    public int updateFreshMedicalMachine(FreshMedicalMachine freshMedicalMachine);

    /**
     * 删除设备信息
     *
     * @param id 设备信息主键
     * @return 结果
     */
    public int deleteFreshMedicalMachineById(Long id);

    /**
     * 批量删除设备信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFreshMedicalMachineByIds(Long[] ids);

    FreshMedicalMachine selectMedicalMachineByCode(@Param("code") String code);

    Integer findMachineCount(Long id);

    FreshMedicalMachine selectFreshMedicalMachineByInstitutionId(Long id);
}
